//
//  KKApplyExpertProgressVC.m
//  DoMi
//
//  Created by 康凯 on 2016/12/7.
//  Copyright © 2016年 kk. All rights reserved.
//

#import "KKApplyExpertProgressVC.h"
#import "KKUserInfoController.h"
#import "KKApplyExpertTimeVC.h"
#import "KKApplyExpertProtocolVC.h"

@interface KKApplyExpertProgressVC ()

@end

@implementation KKApplyExpertProgressVC

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [self initNav];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title=@"申请专家";
}

#pragma mark ---初始化nav
-(void)initNav{
    //禁止透明
    self.navigationController.navigationBar.translucent=NO;
    //电量颜色设置UIStatusBarStyleLightContent
    [UIApplication sharedApplication].statusBarStyle=UIStatusBarStyleDefault;
    //背景颜色
    self.navigationController.navigationBar.barTintColor=[UIColor colorWithHexString1:@"#F7F8F9"];
    //标题字体颜色
    self.navigationController.navigationBar.titleTextAttributes=[NSDictionary dictionaryWithObjectsAndKeys:[UIColor blackColor],NSForegroundColorAttributeName, nil];
    //返回字体颜色
    self.navigationController.navigationBar.tintColor=[UIColor whiteColor];
    
    //左侧排行榜
    UIButton *leftBtn = [[UIButton alloc ]initWithFrame:CGRectMake(0, 0, 12, 20)];
    [leftBtn setImage:[UIImage imageNamed:@"back_blue"] forState:UIControlStateNormal];
    
    [leftBtn addTarget:self action:@selector(back) forControlEvents:UIControlEventTouchUpInside];
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:leftBtn];
    
}
#pragma mark 点击--返回
-(void)back{
    [self.navigationController popViewControllerAnimated:YES];
}
- (IBAction)userInfoClick:(id)sender {
    KKUserInfoController *user=[[KKUserInfoController alloc] init];
    [self.navigationController pushViewController:user animated:YES];
}
- (IBAction)protocolClick:(id)sender {
    KKApplyExpertProtocolVC *protocol=[[KKApplyExpertProtocolVC alloc] init];
    [self.navigationController pushViewController:protocol animated:YES];
}
- (IBAction)appointClick:(id)sender {
    KKApplyExpertTimeVC *time=[[KKApplyExpertTimeVC alloc] init];
    [self.navigationController pushViewController:time animated:YES];
}
- (IBAction)shenHeClick:(id)sender {
}

@end
